import request from '@/utils/request'

/**
 *  获取员工的简单列表
 * **/
export function getEmployeeSimple() {
  return request({
    url: '/sys/user/simple'
  })
}
// 获取员工列表
export const getUserAll = params => request({
  url: '/sys/user',
  params
})
// 删除
export const delUserApi = id => request({
  url: `/sys/user/${id}`,
  method: 'delete'
})
// 新增
export const addUserApi = data => request({
  url: `/sys/user`,
  method: 'POST',
  data
})
// 批量导入员工
export const importExcel = data => request({
  url: '/sys/user/batch',
  method: 'POST',
  data
})
